package com.zhai.boot.dao.mongo.base;

import com.zhai.boot.common.Page;
import org.springframework.data.mongodb.core.query.Update;

/**
 * @package: com.zhai.boot.dao.mongo.base
 * @project-name: zhai-boot
 * @description: mongo基础Dao
 * @author: Created by 翟凤玺
 * @create-datetime: 2018-8-7 11:11
 */
public interface BaseMongoDao<T> {

    T getById(String id);

    Page gird(Integer pageNum, Integer pageSize);

    void insert(T t);

    Boolean update(Update update, String id);

    Boolean remove(String id);

}
